import type { GoodsResType } from '@/types/goods'
import { http } from '@/utils/http'

/**
 * 商品详情
 * @param id:商品id
 * @returns 
 */
export const getGoodsDetailHttp = (id:string)=>{
  return http<GoodsResType>({
    url:'/goods',
    method:'GET',
    data:{
      id,
    }
  })
}
